

import {connect} from 'react-redux';
import {setMenu} from '@/store/actions/menu-action';
import SiderMenu from '@/pages/admin/sidermenu';

const mapStateToProps = () => {
    return {

    }
}
const mapDispatchToProps = (dispatch) => {
    return {
        switchMenu:(mainMenu,subMenu)=> {
            dispatch(setMenu(mainMenu,subMenu));
        }
    }
}

export default connect(mapStateToProps,mapDispatchToProps)(SiderMenu)